import request from '@/utils/request'

export function countdd(query) {
  return request({
    url: '/carService/orderCount/countdd',
    method: 'get',
    params: query
  })
}

//新增订单统计
export function sum(query) {
  return request({
    url: '/carService/orderCount/sum',
    method: 'get',
    params: query
  })
}


// 查询订单统计列表
export function listOrderCount(query) {
  return request({
    url: '/carService/orderCount/list',
    method: 'get',
    params: query
  })
}

// 查询订单统计详细
export function getOrderCount(orderDetailsId) {
  return request({
    url: '/carService/orderCount/' + orderDetailsId,
    method: 'get'
  })
}

// 新增订单统计
export function addOrderCount(data) {
  return request({
    url: '/carService/orderCount',
    method: 'post',
    data: data
  })
}

// 修改订单统计
export function updateOrderCount(data) {
  return request({
    url: '/carService/orderCount',
    method: 'put',
    data: data
  })
}

// 删除订单统计
export function delOrderCount(orderDetailsId) {
  return request({
    url: '/carService/orderCount/' + orderDetailsId,
    method: 'delete'
  })
}
